﻿do
	IGAS:NewAddon("IGAS_Studio")

	local _DB

	------------------------------------------------------------
	-- ScriptType
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.Slider, "ScriptType")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Frame, "ScriptType"))

	------------------------------------------------------------
	-- Function
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.Slider, "Function")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Frame, "Function"))

	_DB:AddCodeHelp("GetMinMaxValues", [=[Returns the minimum and maximum values for the slider]=], [=[GetMinMaxValues()]=])
	_DB:AddCodeHelp("GetThumbTexture", [=[Returns the texture for the slider thumb]=], [=[GetThumbTexture()]=])
	_DB:AddCodeHelp("Enable", [=[Allows user interaction with the button]=], [=[Enable()]=])
	_DB:AddCodeHelp("SetMinMaxValues", [=[Sets the minimum and maximum values for the slider]=], [=[SetMinMaxValues(minValue, maxValue)]=])
	_DB:AddCodeHelp("GetOrientation", [=[Returns the orientation of the slider]=], [=[GetOrientation()]=])
	_DB:AddCodeHelp("SetValue", [=[Sets the value representing the position of the slider thumb]=], [=[SetValue(value)]=])
	_DB:AddCodeHelp("SetThumbTexture", [=[Sets the texture for the slider thumb]=], [=[SetThumbTexture("filename" [, "layer"])]=])
	_DB:AddCodeHelp("SetValueStep", [=[Sets the minimum increment between allowed slider values]=], [=[SetValueStep(step)]=])
	_DB:AddCodeHelp("SetOrientation", [=[Sets the orientation of the slider]=], [=[SetOrientation("orientation")]=])
	_DB:AddCodeHelp("IsEnabled", [=[Returns whether user interaction with the button is allowed]=], [=[IsEnabled()]=])
	_DB:AddCodeHelp("GetValue", [=[Returns the value representing the current position of the slider thumb]=], [=[GetValue()]=])
	_DB:AddCodeHelp("GetValueStep", [=[Returns the minimum increment between allowed slider values]=], [=[GetValueStep()]=])
	_DB:AddCodeHelp("Disable", [=[Disallows user interaction with the button]=], [=[Disable()]=])
	------------------------------------------------------------
	-- Property
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.Slider, "Property")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Frame, "Property"))
	
	_DB:AddCodeHelp("Layer", [[the layer used for drawing the filled-in portion of the slider]], IGAS:GetPropertyType("DrawLayer"))
	_DB:AddCodeHelp("Enabled", [[whether user interaction with the slider is allowed]], IGAS:GetPropertyType("boolean"))
	_DB:AddCodeHelp("ThumbTexture", [[the texture for the slider thumb]], IGAS:GetPropertyType("Texture"))
	_DB:AddCodeHelp("ThumbTexturePath", [[the texture file for the slider thumb]], IGAS:GetPropertyType("string"))
	_DB:AddCodeHelp("Orientation", [[the orientation of the slider]], IGAS:GetPropertyType("Orientation"))
	_DB:AddCodeHelp("ValueStep", [[the minimum increment between allowed slider values]], IGAS:GetPropertyType("number"))
	_DB:AddCodeHelp("Value", [[the value representing the current position of the slider thumb]], IGAS:GetPropertyType("number"))
end
